<h1>Check resoult</h1>

<% form_for(@new_examination_resoult) do |f| %>
  <%= f.error_messages %>
  <p>

  </p>
  <p>
    <%= f.label :description %>
    <%= f.text_field :description %>
  </p>
  <br/>
  <p>
    Parameters:
  </p>
  <p>
    <%for param_resoult in @new_examination_resoult.param_resoults%>
      <%fields_for "temp_examination_resoult[param_resoult_attributes][]", param_resoult do |param_resoult_form| %>
        <p>
         <%=param_resoult.param_norm.name%> : <%=param_resoult.resoult %> norma: <%=param_resoult.param_norm.norm%>
        </p>
        <p>
          Opis parametru: <%= param_resoult_form.text_field :description, :index => nil%>
          <%= param_resoult_form.hidden_field :resoult, :index => nil%>
          <%= param_resoult_form.hidden_field :param_norm_id, :index => nil %>
          <%= param_resoult_form.hidden_field :id, :index => nil %>
        </p>
      <% end %>
  <% end %>
  </p>
  <p>
    <%= submit_tag  'Confirm', :name => 'confirm_button'%>
  </p>
  <p>
    <%= submit_tag 'Decline', :name => 'decline_button'%>
  </p>
<% end %>

<%= link_to 'Back', temp_examination_resoults_path %>